<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>EventHandler (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">events.EventHandler</span>
        <span>Extends</span>
        <span class="fn-name">
          <a href="class_goog_Disposable.html">
          goog.Disposable
</a>
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Super class for objects that want to easily manage a number of event
listeners.  It allows a short cut to listen and also provides a quick way
to remove all events listeners belonging to this object.

  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_events_eventhandler.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/events/eventhandler.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td><span class="type"><a href="class_goog_Disposable.html">goog.Disposable</a></span></td><td></td></tr>
  <tr><td>goog.events.EventHandler</td><td><span class="type"><a href="class_goog_Disposable.html">goog.Disposable</a></span></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.events.EventHandler(<span><span class="arg">opt_scope</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">SCOPE=</span>
        <div class="entryOverview">Object in whose scope to call the listeners.</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_events_EventHandler.html">
              goog.events.EventHandler
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.disposeInternal"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">disposeInternal<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Disposes of this EventHandler and removes all listeners that it registered.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line447">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.getListenerCount"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getListenerCount<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            Number of listeners registered by this handler.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line362">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.handleEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleEvent<span class="args">(<span class="arg">e</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Default event handler

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">e</span>
        : <span class="type"><a href="class_goog_events_Event.html">goog.events.Event</a></span>
        <div class="entryOverview">Event object.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line457">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listen"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listen<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capture</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted then the
EventHandler's handleEvent method will be used.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(this:SCOPE, EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capture</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line117">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenOnce"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenOnce<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capture</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted, then the
EventHandler's handleEvent method will be used. After the event has fired the
event listener is removed from the target. If an array of event types is
provided, each event type will be listened to once.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(this:SCOPE, EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capture</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line210">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenOnceWithScope"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenOnceWithScope<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">capture</span>,&nbsp;<span class="arg">scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted, then the
EventHandler's handleEvent method will be used. After the event has fired the
event listener is removed from the target. If an array of event types is
provided, each event type will be listened to once.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(this:T, EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(this:T, </span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">capture</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">scope</span>
        : <span class="type">T</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line236">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenOnce_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenOnce_<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capture</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted, then the
EventHandler's handleEvent method will be used. After the event has fired
the event listener is removed from the target. If an array of event types is
provided, each event type will be listened to once.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capture</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line262">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenWithScope"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenWithScope<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">capture</span>,&nbsp;<span class="arg">scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted then the
EventHandler's handleEvent method will be used.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(this:T, EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(this:T, </span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">capture</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">scope</span>
        : <span class="type">T</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line139">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenWithWrapper"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenWithWrapper<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">wrapper</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capt</span>)</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Adds an event listener with a specific event wrapper on a DOM Node or an
object that has implemented <code> goog.events.EventTarget</code>. A listener can
only be added once to an object.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">EventTarget</span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_events_EventTarget.html">goog.events.EventTarget</a></span>
        <div class="entryOverview">The node to listen to
    events on.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">wrapper</span>
        : <span class="type"><a href="interface_goog_events_EventWrapper.html">goog.events.EventWrapper</a></span>
        <div class="entryOverview">Event wrapper to use.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span>?</span><span class="type">function(this:SCOPE, </span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capt</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Whether to fire in capture phase (defaults to
    false).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line302">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenWithWrapperAndScope"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenWithWrapperAndScope<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">wrapper</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">capture</span>,&nbsp;<span class="arg">scope</span>)</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Adds an event listener with a specific event wrapper on a DOM Node or an
object that has implemented <code> goog.events.EventTarget</code>. A listener can
only be added once to an object.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">EventTarget</span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_events_EventTarget.html">goog.events.EventTarget</a></span>
        <div class="entryOverview">The node to listen to
    events on.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">wrapper</span>
        : <span class="type"><a href="interface_goog_events_EventWrapper.html">goog.events.EventWrapper</a></span>
        <div class="entryOverview">Event wrapper to use.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span>?</span><span class="type">function(this:T, </span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(this:T, </span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">capture</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">scope</span>
        : <span class="type">T</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line327">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listenWithWrapper_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listenWithWrapper_<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">wrapper</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capt</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Adds an event listener with a specific event wrapper on a DOM Node or an
object that has implemented <code> goog.events.EventTarget</code>. A listener can
only be added once to an object.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">EventTarget</span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_events_EventTarget.html">goog.events.EventTarget</a></span>
        <div class="entryOverview">The node to listen to
    events on.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">wrapper</span>
        : <span class="type"><a href="interface_goog_events_EventWrapper.html">goog.events.EventWrapper</a></span>
        <div class="entryOverview">Event wrapper to use.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span>?</span><span class="type">function(</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capt</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Whether to fire in capture phase (defaults to
    false).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Element in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line351">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.listen_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">listen_<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capture</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Listen to an event on a Listenable.  If the function is omitted then the
EventHandler's handleEvent method will be used.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type to listen for or array of event types.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capture</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line163">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.removeAll"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">removeAll<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Unlistens to all events.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line436">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.unlisten"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">unlisten<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">type</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capture</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Unlistens on an event.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">goog.events.ListenableType</span>
        <div class="entryOverview">Event source.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;<span>&nbsp;|&nbsp;</span><span class="type">
       !goog.events.EventId</span>.&lt;<span class="type">EVENTOBJ</span>&gt;<span>&nbsp;|&nbsp;</span><span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_events_EventId.html">goog.events.EventId</a></span>.&lt;<span class="type">EVENTOBJ</span>&gt;&gt;
        <div class="entryOverview">Event type or array of event types to unlisten to.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span class="type">function(EVENTOBJ</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capture</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Optional whether to use capture phase.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Object in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line388">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.events.EventHandler.prototype.unlistenWithWrapper"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">unlistenWithWrapper<span class="args">(<span class="arg">src</span>,&nbsp;<span class="arg">wrapper</span>,&nbsp;<span class="arg"></span>,&nbsp;<span class="arg">opt_capt</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>
      </div>


     <div class="entryOverview">
       Removes an event listener which was added with listenWithWrapper().


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">src</span>
        : <span class="type">EventTarget</span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_events_EventTarget.html">goog.events.EventTarget</a></span>
        <div class="entryOverview">The target to stop
    listening to events on.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">wrapper</span>
        : <span class="type"><a href="interface_goog_events_EventWrapper.html">goog.events.EventWrapper</a></span>
        <div class="entryOverview">Event wrapper to use.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName"></span>
        : <span>?</span><span class="type">function(</span>)<span>:?</span><span>&nbsp;|&nbsp;</span><span>?</span><span class="type">{handleEvent:function(</span>)<span>:?</span>
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_capt</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">In DOM-compliant browsers, this determines
    whether the listener is fired during the capture or bubble phase of the
    event.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Element in whose scope to call the listener.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_events_EventHandler.html">goog.events.EventHandler</a></span>&nbsp;
            This object, allowing for chaining of
    calls.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line425">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>

<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_Disposable.html">
              goog.Disposable
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.Disposable.prototype.addOnDisposeCallback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addOnDisposeCallback<span class="args">(<span class="arg">callback</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">callback</span>
        : <span class="type">function(this:T</span>)<span>:?</span>
        <div class="entryOverview">The callback function.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_scope</span>
        : <span class="type">T=</span>
        <div class="entryOverview">An optional scope to call the callback in.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line211">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.Disposable.prototype.dispose"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">dispose<span class="args">()</span>
        </span>
        &#8658; <span class="type">void</span>
      </div>


     <div class="entryOverview">
       Disposes of the object. If the object hasn't already been disposed of, calls
<code> #disposeInternal</code>. Classes that extend <code> goog.Disposable</code> should
override <code> #disposeInternal</code> in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type">void</span>&nbsp;
            Nothing.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line172">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.Disposable.prototype.disposeInternal"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">disposeInternal<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend <code> goog.Disposable</code> should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' <code> disposeInternal</code> method. Everywhere else the public
<code> dispose</code> method must be used.
For example:
<pre class="lang-js prettyprint">
  mypackage.MyClass = function() {
    goog.base(this);
    // Constructor logic specific to MyClass.
    ...
  };
  goog.inherits(mypackage.MyClass, goog.Disposable);

  mypackage.MyClass.prototype.disposeInternal = function() {
    // Dispose logic specific to MyClass.
    ...
    // Call superclass's disposeInternal at the end of the subclass's, like
    // in C++, to avoid hard-to-catch issues.
    goog.base(this, 'disposeInternal');
  };
</pre>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line245">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td class="deprecated">
    <a name="goog.Disposable.prototype.getDisposed"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getDisposed<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       <span class="deprecatedMessage">Use <code> #isDisposed</code> instead.</span>
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the object has been disposed of.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line160">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.Disposable.prototype.isDisposed"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">isDisposed<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the object has been disposed of.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line151">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.Disposable.prototype.registerDisposable"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">registerDisposable<span class="args">(<span class="arg">disposable</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Associates a disposable object with this object so that they will be disposed
together.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">disposable</span>
        : <span class="type"><a href="interface_goog_disposable_IDisposable.html">goog.disposable.IDisposable</a></span>
        <div class="entryOverview">that will be disposed when
    this object is disposed.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line199">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_events_EventHandler.html">
              goog.events.EventHandler
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.events.EventHandler.prototype.constructor"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">constructor</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line75">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.events.EventHandler.prototype.handler_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">handler_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line79">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.events.EventHandler.prototype.keys_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">keys_</span>
        : 
     </div>


     <div class="entryOverview">
       Keys for events that are being listened to.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line86">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>

<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_Disposable.html">
              goog.Disposable
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.Disposable.prototype.creationStack"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">creationStack</span>
        : 
     </div>


     <div class="entryOverview">
       If monitoring the goog.Disposable instances is enabled, stores the creation
stack trace of the Disposable instance.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line144">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.Disposable.prototype.disposed_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">disposed_</span>
        : 
     </div>


     <div class="entryOverview">
       Whether the object has been disposed of.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line128">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.Disposable.prototype.onDisposeCallbacks_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">onDisposeCallbacks_</span>
        : 
     </div>


     <div class="entryOverview">
       Callbacks to invoke when this object is disposed.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_disposable_disposable.js.source.html#line136">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>










<div class="section">
  <table class="horiz-rule">


  </table>
</div>



<h2>Static Properties</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.events.EventHandler.superClass_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.events.EventHandler.</span><span class="entryName">superClass_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line75">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.events.EventHandler.typeArray_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.events.EventHandler.</span><span class="entryName">typeArray_</span>
        : 
     </div>


     <div class="entryOverview">
       Utility array used to unify the cases of listening for an array of types
and listening for a single event, without using recursion or allocating
an array each time.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_events_eventhandler.js.source.html#line99">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package events</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="events.EventHandler"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
